/**
 * 
 */

function control($scope){

	$scope.load = function(){
		var app = angular.module('ngdemo.controllers', []);
		alert(app);
		app.controller('MyCtrl1', [ '$scope', 'UserFactory',
				function($scope, UserFactory) {
					alert("Ddan");
					UserFactory.get({}, function(userFactory) {
						$scope.firstname = userFactory.firstName;
					});
				} ]);
	};
	
}
